package test;

import java.io.File;
import java.util.Properties;

import junit.framework.TestCase;

import com.fzy.core.utils.U;

public class T extends TestCase {
	public void test1(){
//		String appPath = "D:/code/google/fzy/t120630/WebRoot";
//		String outputPath = "/output";
//		File f = new File(appPath + outputPath);
//		deleteFileDeeply(f);
//		System.out.println(new Date());
		
//		double x = 0.05;
//		double sum = 0;
//		for (int i = 0; i < 3; ++i) {
//			sum += 0.05;
//		}
//		System.out.println(sum);
		
//		String p = U.getAbsolutePath("./");
//		System.out.println(p);
		
//		int i = 0;
//		int x = 1 + i++;
//		System.out.println(x);
		
		int i = 0;
		while (i < 3) {
			// 
			i++;
		}
		
//		Properties ps = U.getProperties("application.properties");
//		System.out.println(ps.get("app.path"));
	}
	private void deleteFileDeeply(File file){
		if(!file.exists()) return;
		if(file.isFile()){
			file.delete();
			return;
		} 
		if(file.isDirectory()){
			File[] files = file.listFiles();
			if(files != null && files.length > 0){
				for (int i = 0; i < files.length; i++) {
					deleteFileDeeply(files[i]);
				}
			}
			file.delete();
		}
	}
}
